package com.manlu.mapper;

import com.manlu.pojo.Admin;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

@org.apache.ibatis.annotations.Mapper
public interface AdminMapper extends Mapper<Admin> {
    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    @Select("select * from admin where username = #{username} ")
    Admin selectAdminByUsername(@Param("username") String username);

}
